/*
 * Project Name: JMax
 * File Name: SkipController.java
 * Copyright: Copyright(C) 1985-2015 ZKTeco Inc. All rights reserved.
 */
package com.xdtech.test.controller;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang.StringUtils;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * TODO 一句话功能简述，请确保和下面的block tags之间保留一行空行
 * <p>
 * TODO 功能详细描述，若不需要请连同上面的p标签一起删除
 * 
 * @author <a href="max.zheng@zkteco.com">郑志雄</>
 * @version TODO 添加版本
 * @see 相关类或方法，不需要请删除此行
 * @since 2015-1-21 下午1:51:05
 */
@Controller
@Scope("prototype")
@RequestMapping("/skip.do")
public class SkipController
{
	@RequestMapping(params = "skip")
	public ModelAndView skip(HttpServletRequest request,String url) {
		if (StringUtils.isBlank(url))
		{
			url = "skip";
		}
		return new ModelAndView("/skip/"+url+"_ftl");
	}
	
}
